﻿<base:UserControlBase x:Class="WPFDBBrowser.UserControls.DataViewer"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:base="clr-namespace:WPFDBBrowser.Framework"
             xmlns:avalonEdit="http://icsharpcode.net/sharpdevelop/avalonedit"
             mc:Ignorable="d"
                      xmlns:local="clr-namespace:WPFDBBrowser.UserControls"
             x:TypeArguments="local:DataViewerPresenter, local:IDataViewer"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>

        <ToolBarTray Grid.Row="0"
                     Height="Auto" 
                     x:Name="toolBarTrayMain"
                     HorizontalAlignment="Stretch" 
                     VerticalAlignment="Top">
            <ToolBar x:Name="toolBarQueryEditor" 
                     IsTabStop="False" 
                     Band="1" 
                     BandIndex="1">
                
                <Button x:Name="buttonRefresh">
                    <Image Source="/WPFDBBrowser;component/Images/server_add.png">                        
                    </Image>
                </Button>
                
                <Button x:Name="button2">
                    <Image Source="/WPFDBBrowser;component/Images/server_edit.png">                        
                    </Image>
                </Button>
                
                <Button x:Name="button3">
                    <Image Source="/WPFDBBrowser;component/Images/server_delete.png">                        
                    </Image>
                </Button>
                
                <Separator/>
                
                <Button x:Name="button4">
                    <Image Source="/WPFDBBrowser;component/Images/script_run.png">                        
                    </Image>
                </Button>
                
                <Button x:Name="button5">
                    <Image Source="/WPFDBBrowser;component/Images/script_copy.png">                        
                    </Image>
                </Button>
            </ToolBar>
        </ToolBarTray>

        <DataGrid Grid.Row="1"
                  HorizontalAlignment="Stretch"
                  VerticalAlignment="Stretch"                  
                  x:Name="dgrDataView" />

    </Grid>
</base:UserControlBase>
